﻿using Microsoft.AspNetCore.Mvc.Filters;

namespace CoreWebApiNuGet.ActionFilter
{
    /// <summary>
    /// 全局过滤器
    /// </summary>
    public class GlobalFilters
    {
        /// <summary>
        /// 添加过滤器
        /// </summary>
        /// <param name="filterCollection"></param>
        public static void AddFilter(FilterCollection filterCollection)
        {
            filterCollection.Add<ApiResponseActionFilter>();
            filterCollection.Add<ExceptionsActionFilter>();
        }
    }
}
